﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main_Wap.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="tophd.Classes.Helper" %>
<%@ Import Namespace="tophd.Models.Entity" %>
<%@ Import Namespace="tophd.Models.Service" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    VideoByCategory
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var category = (Category)ViewData["category"];

       var newListVideo = (List<Video>)ViewData["vListNew"];

       int totalRecord = ViewBag.totalRecord;
       int page = ViewBag.page;
       long? cateId = ViewBag.cateId;
    %>
    <div id="topSld">
        <div class="sldImg">
            <link rel="stylesheet" href="/App_Themes/Theme.Wap/CSS/idangerous.swiper.css" />
            <link rel="stylesheet" href="/App_Themes/Theme.Wap/CSS/style.css?v=1.8" />
            <link rel="stylesheet" href="/App_Themes/Theme.Wap/CSS/swiper-demos.css?v=1.8" />
            <script src="/App_Themes/Theme.Wap/JS/jquery-1.7.1.min.js"></script>
            <script src="/App_Themes/Theme.Wap/JS/idangerous.swiper-1.9.1.min.js"></script>
            <script src="/App_Themes/Theme.Wap/JS/idangerous.swiper.scrollbar-1.2.js"></script>
            <div class="inslide clearfix" style="overflow: hidden;">
                <div class="sl1256" style="overflow: hidden; height: 515.7941176470588px; width: 1349px;">
                    <div class="arbao" style="padding: 0px 0px;">
                        <div class="home-device" style="height: 545.7941176470588px; width: 1349px;">
                            <div class="swiper-main" style="width: 1349px; height: 545.7941176470588px;">
                                <div class="advanced-slider" id="responsive-slider">
                                    <div class="swiper-container swiper1" style="cursor: -webkit-grab; width: 1349px;
                                        height: 545.7941176470588px;">
                                        <div class="swiper-wrapper" style="width: 9443px; height: 545.78125px; -webkit-transform: translate3d(0px, 0px, 0px);
                                            transition: 0.3s; -webkit-transition: 0.3s;">
                                            <div class="swiper-slide" style="width: 1349px; height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/tan-thien-long-bat-bo-the-demi-gods-and-semi-devils-2013_ifiiw/"
                                                        ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/the-demi-gods-and-semi-devils-2013-1390042109.jpg"
                                                            alt="Tân Thiên Long Bát Bộ" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                            <div class="swiper-slide" style="width: 1349px; height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/khong-che-control-2013_ifiyi/" ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/control-2013-1390041603.jpeg"
                                                            alt="Khống Chế" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                            <div class="swiper-slide" style="width: 1349px; height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/bach-ho-the-fox-lover-2013_ifio9/" ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/the-fox-lover-2013-1390041751.jpg"
                                                            alt="Bạch Hồ" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                            <div class="swiper-slide swiper-slide-visible swiper-slide-active" style="width: 1349px;
                                                height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/nhen-khong-lo-big-ass-spider-2013_ifioy/" ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/big-ass-spider-2013-1390041903.jpg"
                                                            alt="Nhện Khổng Lồ" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                            <div class="swiper-slide" style="width: 1349px; height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/90-phut-kinh-hoang-the-terror-live-2013_ifitb/" ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/the-terror-live-2013-1390041986.jpg"
                                                            alt="90 Phút Kinh Hoàng" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                            <div class="swiper-slide" style="width: 1349px; height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/tan-thien-long-bat-bo-the-demi-gods-and-semi-devils-2013_ifiiw/"
                                                        ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/the-demi-gods-and-semi-devils-2013-1390042109.jpg"
                                                            alt="Tân Thiên Long Bát Bộ" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                            <div class="swiper-slide" style="width: 1349px; height: 545.78125px;">
                                                <div class="aiibimg">
                                                    <a href="http://m.langmauviethd.vn/phim/khong-che-control-2013_ifiyi/" ad="1">
                                                        <img class="image" src="/App_Themes/Theme.Wap/Images/control-2013-1390041603.jpeg"
                                                            alt="Khống Chế" style="width: 1349px; height: 515.7941176470588px;"></a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="pagination pagination1" style="bottom: 10px; top: inherit; width: 100%;">
                                <span class="swiper-pagination-switch"></span><span class="swiper-pagination-switch">
                                </span><span class="swiper-pagination-switch swiper-visible-switch swiper-active-switch">
                                </span><span class="swiper-pagination-switch"></span><span class="swiper-pagination-switch">
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <script src="/App_Themes/Theme.Wap/JS/home.js" type="text/javascript"></script>
        </div>
    </div>
    <div id="content">
        <div class="c clearfix">
            <div class="l">
                <div class="cFolder">
                    <a href="/">
                        <%=category.Name %></a></div>
                <img src="/App_Themes/Theme.Wap/Images/colection_menu_red_right.png">
            </div>
        </div>
        <div class="cFrame clearfix">
            <% if (!ReferenceEquals(newListVideo, null))
               {
                   foreach (var video in newListVideo)
                   {
            %>
            <div class="cElement clearfix">
                <div class="row clearfix">
                    <a class="cTitle aclk1" href="/Video/Xem/<%=video.VideoId %>/<%=UIHelper.convertToUnSign(video.Name) %>">
                        <div class="l mar7 marr12">
                            <img src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= video.Icon %>"
                                alt="<%=video.Name %>"></div>
                        <div class="mar2">
                            <div class="acl3">
                                <span class="cTitle">
                                    <%=video.Name %></span>
                                <div class="intro">
                                    <span>
                                        <%=video.Description %></span></div>
                                <div class="tt3a">
                                    Thể loại:
                                    <%=category.Name %></div>
                            </div>
                            <div class="row lastRow">
                                <div class="rate">
                                    <img src="/App_Themes/Theme.Wap/Images/view_icon.png" alt="<%=video.Name %>">
                                    <span class="gray">33</span>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <%}
            %>
            <%} %>
        </div>
    </div>
    <%= Html.Paging(page, 20, totalRecord)%>
    <script type="text/javascript">
        function PageClick(currentpage) {

            window.location = '/Category/VideoByCategory?categoryId=<%=cateId %>&page=' + currentpage;

        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
